--字符串分割函数,按|分割
function lua_string_split(str, split_char)
    local sub_str_tab = {};
    for mu_id in string.gmatch(str, split_char) do
        table.insert(sub_str_tab, mu_id)
    end
    return sub_str_tab;
end



str = "Q001,6,5,1983,Kevinjacques550@gmail.com,Kevin,Jacques,Mill Bank Court,Kidderminster,Mill Bank Court,DY116GA,7713654701,,,Flat 15";
str1 = "Q002,9,15,1972,katemoscrop@icloud.com,Kathryn,Sharples,Henderson Rd,Newton Aycliffe,Durham,DL55PE,7581191131,,,61";

sub_str_tab = lua_string_split(str,"[^,]+");


for key,value in pairs(sub_str_tab) do
	print(value);
end